<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq</title>
</head>

<style>
*{margin:0px; padding: 0px;}
	.menu{
		height:50px;
		background: #000;
		line-height:50px;
	}
	.menu ul{
		list-style:none;
	}
	.menu ul li{
		float: left;;
		color:#fff;
		margin-left: 15px;
		font-size:20px;
		line-height:50px;
		width:100px;
		text-align: center;
	}
	.menu ul li:hover{
		cursor: pointer; /*鼠标滑动，变成小手*/
		background: #ccc;
	}

	.info{
		
		height:200px;
		background: #ccc;
		color:#000;
		overflow: hidden; /* 超出文字隐藏 */
		padding: 15px;
	}

	.info p{
		display:none;
	}

	.info p:first-child{
		display:block;
	}
</style>
<style>
	
</style>
<script src="jquery.js"></script>

<body>

	<div class='menu'>
		<ul>
			<!-- li是块标签 -->
			<li>linux</li>
			<li>php</li>
			<li>javascript</li>
		</ul>
	</div>
	<div class='info'>
		<p>linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!ery much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!linux is very much!</p>
		<p>php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!php is very much!</p>
		<p>javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!javacript is very much!</p>
		


	</div>
</body>

<script>
	//酒仙网，页面刷新，第一个命中
	$('.menu li').eq(0).css({'background':'#ccc'});
	
	$('.menu li').mouseenter(function(){
		//移动到谁身上，谁就发生变化
		$(this).css({'background':'#ccc'});
		$('.menu li').not($(this)).css({'background':'#000'});

		
		idx=$(this).index('.menu li');
		
		$('.info p').eq(idx).show(); 
		$('.info p').not($('.info p').eq(idx)).hide();
		
	});

	
</script>
</html>